ACLOCAL_AMFLAGS = -I m4

noinst_PROGRAMS = strip-size-and-md5-tags create-header-copy
bin_PROGRAMS = genpkglist gensrclist pkglist-query
bin_SCRIPTS = genbasedir

EXTRA_DIST = genbasedir

@CODE_COVERAGE_RULES@
CODE_COVERAGE_BRANCH_COVERAGE = 1
CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) \
        --prefix $(shell cd $(abs_top_srcdir)/.. && pwd || echo .)
CODE_COVERAGE_IGNORE_PATTERN = '/usr/include/*'

AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)

strip_size_and_md5_tags_SOURCES = strip-size-and-md5-tags.cc genutil.h
create_header_copy_SOURCES = create-header-copy.cc genutil.cc genutil.h

genpkglist_SOURCES = genpkglist.cc cached_hash.cc cached_hash.h genutil.cc genutil.h
gensrclist_SOURCES = gensrclist.cc cached_hash.cc cached_hash.h genutil.cc genutil.h
genpkglist_LDADD = $(CODE_COVERAGE_LIBS)
pkglist_query_SOURCES = pkglist-query.cc
pkglist_query_LDADD = $(CODE_COVERAGE_LIBS)

clean-local: code-coverage-clean
distclean-local: code-coverage-dist-clean
